import Vue from "vue";
import vuex from 'vuex'
Vue.use(vuex);

import home from "./home";
import search from "./search";
import detail from './detail'
import shopCart from "./shopCart/shopCart";
import user from "./user/index";
import trade from "./trade";
//对外暴露一个store类的实例
export default new vuex.Store({
    modules: {
        home,
        search,
        detail,
        shopCart,
        user,
        trade
    }
})